package com.social.socialservice.controller;

import com.social.socialservice.dal.RecommendUserDAL;
import com.social.socialservice.model.UserInfo;
import com.social.socialservice.unit.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 推荐器请求API
 */
@RestController
@CrossOrigin
public class RecommendController {
    @Autowired
    RecommendUserDAL recommendUserDAL;

    /**
     * getRecommendUserList
     * 推荐当前登录用户可关注的用户列表
     * @param userInfo
     * @return
     */
    @RequestMapping(value = "/getRecommendUserList", method = RequestMethod.POST, produces = "application/json; utf-8")
    public Response getRecommendUserList(@RequestBody UserInfo userInfo) {
        return new Response(200,"推荐数据成功",recommendUserDAL.getRecommendUserList(userInfo));
    }
}
